/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cardrule.service;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.cardrule.dao.LibraryCardRuleDao;
import com.thinkgem.jeesite.modules.cardrule.entity.LibraryCardRule;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 自助办卡种类Service
 * @author zhangc
 * @version 2018-01-07
 */
@Service
@Transactional(readOnly = true)
public class LibraryCardRuleService extends CrudService<LibraryCardRuleDao, LibraryCardRule>{

	public LibraryCardRule get(String id) {
		return super.get(id);
	}
	public List<LibraryCardRule> findList(LibraryCardRule libraryCardRule) {
		return super.findList(libraryCardRule);
	}
	
	public Page<LibraryCardRule> findPage(Page<LibraryCardRule> page, LibraryCardRule libraryCardRule) {
		return super.findPage(page, libraryCardRule);
	}
	
	@Transactional(readOnly = false)
	public void save(LibraryCardRule libraryCardRule) {
		super.save(libraryCardRule);
	}
	
	@Transactional(readOnly = false)
	public int delete(LibraryCardRule libraryCardRule) {
		return super.delete(libraryCardRule);
	}

	public LibraryCardRule getDefault() {
		return dao.getDefault();
	}
}